﻿namespace RStudio.UIFramwork
{
    /// <summary>
    /// 处理器|禁用UI
    /// </summary>
    internal class HandlerUIDeActive : IUIHandler
    {
        public IUIHandler Next { get; set; }

        public void Handle(UIBase uiBase)
        {
            uiBase.gameObject.SetActive(false);
            uiBase.DeActiveUI();

            Next?.Handle(uiBase);
        }
    }
}
